package hz.mobileproject.pda.network;

import cn.droidlover.xdroidmvp.net.XApi;


public class Api {

    private static GankService gankService;

    public static GankService getGankService() {
        if (gankService == null) {
            synchronized (Api.class) {
                if (gankService == null) {
                    gankService = XApi.getInstance().getRetrofit(Constance.BASE_URL, true).create(GankService.class);
                }
            }
        }
        return gankService;
    }

    public static void cleanGankService(){
        gankService = null;
    }
}
